Optimal. Leaf size=167 \[ -\frac {\tan ^{-1}\left (\frac {\sqrt [3]{a}-2 \sqrt [3]{b} \sin (c+d x)}{\sqrt {3} \sqrt [3]{a}}\right )}{\sqrt {3} a^{2/3} \sqrt [3]{b} d}+\frac {\log \left (\sqrt [3]{a}+\sqrt [3]{b} \sin (c+d x)\right )}{3 a^{2/3} \sqrt [3]{b} d}-\frac {\log \left (a^{2/3}-\sqrt [3]{a} \sqrt [3]{b} \sin (c+d x)+b^{2/3} \sin ^2(c+d x)\right )}{6 a^{2/3} \sqrt [3]{b} d}-\frac {\log \left (a+b \sin ^3(c+d x)\right )}{3 b d} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.10, antiderivative size = 167, normalized size of antiderivative = 1.00, number of steps
used = 9, number of rules used = 9, integrand size = 23, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.391, Rules used = {3302, 1885,
206, 31, 648, 631, 210, 642, 266} \begin {gather*} -\frac {\text {ArcTan}\left (\frac {\sqrt [3]{a}-2 \sqrt [3]{b} \sin (c+d x)}{\sqrt {3} \sqrt [3]{a}}\right )}{\sqrt {3} a^{2/3} \sqrt [3]{b} d}-\frac {\log \left (a^{2/3}-\sqrt [3]{a} \sqrt [3]{b} \sin (c+d x)+b^{2/3} \sin ^2(c+d x)\right )}{6 a^{2/3} \sqrt [3]{b} d}+\frac {\log \left (\sqrt [3]{a}+\sqrt [3]{b} \sin (c+d x)\right )}{3 a^{2/3} \sqrt [3]{b} d}-\frac {\log \left (a+b \sin ^3(c+d x)\right )}{3 b d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 31
Rule 206
Rule 210
Rule 266
Rule 631
Rule 642
Rule 648
Rule 1885
Rule 3302
Rubi steps
\begin {align*} \int \frac {\cos ^3(c+d x)}{a+b \sin ^3(c+d x)} \, dx &=\frac {\text {Subst}\left (\int \frac {1-x^2}{a+b x^3} \, dx,x,\sin (c+d x)\right )}{d}\\ &=\frac {\text {Subst}\left (\int \frac {1}{a+b x^3} \, dx,x,\sin (c+d x)\right )}{d}-\frac {\text {Subst}\left (\int \frac {x^2}{a+b x^3} \, dx,x,\sin (c+d x)\right )}{d}\\ &=-\frac {\log \left (a+b \sin ^3(c+d x)\right )}{3 b d}+\frac {\text {Subst}\left (\int \frac {1}{\sqrt [3]{a}+\sqrt [3]{b} x} \, dx,x,\sin (c+d x)\right )}{3 a^{2/3} d}+\frac {\text {Subst}\left (\int \frac {2 \sqrt [3]{a}-\sqrt [3]{b} x}{a^{2/3}-\sqrt [3]{a} \sqrt [3]{b} x+b^{2/3} x^2} \, dx,x,\sin (c+d x)\right )}{3 a^{2/3} d}\\ &=\frac {\log \left (\sqrt [3]{a}+\sqrt [3]{b} \sin (c+d x)\right )}{3 a^{2/3} \sqrt [3]{b} d}-\frac {\log \left (a+b \sin ^3(c+d x)\right )}{3 b d}+\frac {\text {Subst}\left (\int \frac {1}{a^{2/3}-\sqrt [3]{a} \sqrt [3]{b} x+b^{2/3} x^2} \, dx,x,\sin (c+d x)\right )}{2 \sqrt [3]{a} d}-\frac {\text {Subst}\left (\int \frac {-\sqrt [3]{a} \sqrt [3]{b}+2 b^{2/3} x}{a^{2/3}-\sqrt [3]{a} \sqrt [3]{b} x+b^{2/3} x^2} \, dx,x,\sin (c+d x)\right )}{6 a^{2/3} \sqrt [3]{b} d}\\ &=\frac {\log \left (\sqrt [3]{a}+\sqrt [3]{b} \sin (c+d x)\right )}{3 a^{2/3} \sqrt [3]{b} d}-\frac {\log \left (a^{2/3}-\sqrt [3]{a} \sqrt [3]{b} \sin (c+d x)+b^{2/3} \sin ^2(c+d x)\right )}{6 a^{2/3} \sqrt [3]{b} d}-\frac {\log \left (a+b \sin ^3(c+d x)\right )}{3 b d}+\frac {\text {Subst}\left (\int \frac {1}{-3-x^2} \, dx,x,1-\frac {2 \sqrt [3]{b} \sin (c+d x)}{\sqrt [3]{a}}\right )}{a^{2/3} \sqrt [3]{b} d}\\ &=-\frac {\tan ^{-1}\left (\frac {1-\frac {2 \sqrt [3]{b} \sin (c+d x)}{\sqrt [3]{a}}}{\sqrt {3}}\right )}{\sqrt {3} a^{2/3} \sqrt [3]{b} d}+\frac {\log \left (\sqrt [3]{a}+\sqrt [3]{b} \sin (c+d x)\right )}{3 a^{2/3} \sqrt [3]{b} d}-\frac {\log \left (a^{2/3}-\sqrt [3]{a} \sqrt [3]{b} \sin (c+d x)+b^{2/3} \sin ^2(c+d x)\right )}{6 a^{2/3} \sqrt [3]{b} d}-\frac {\log \left (a+b \sin ^3(c+d x)\right )}{3 b d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.11, size = 139, normalized size = 0.83 \begin {gather*} \frac {\left (-a^{2/3}+(-1)^{2/3} b^{2/3}\right ) \log \left (-(-1)^{2/3} \sqrt [3]{a}-\sqrt [3]{b} \sin (c+d x)\right )+\left (-a^{2/3}+b^{2/3}\right ) \log \left (\sqrt [3]{a}+\sqrt [3]{b} \sin (c+d x)\right )-\left (a^{2/3}+\sqrt [3]{-1} b^{2/3}\right ) \log \left (\sqrt [3]{a}+(-1)^{2/3} \sqrt [3]{b} \sin (c+d x)\right )}{3 a^{2/3} b d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.70, size = 133, normalized size = 0.80
method | result | size |
risch | \(\frac {i x}{b}+\frac {2 i c}{b d}+\left (\munderset {\textit {\_R} =\RootOf \left (27 a^{2} \textit {\_Z}^{3} d^{3} b^{3}+27 a^{2} b^{2} d^{2} \textit {\_Z}^{2}+9 a^{2} d \textit {\_Z} b +a^{2}-b^{2}\right )}{\sum }\textit {\_R} \ln \left ({\mathrm e}^{2 i \left (d x +c \right )}+\left (6 i a d \textit {\_R} +\frac {2 i a}{b}\right ) {\mathrm e}^{i \left (d x +c \right )}-1\right )\right )\) | \(106\) |
derivativedivides | \(\frac {\frac {\ln \left (\sin \left (d x +c \right )+\left (\frac {a}{b}\right )^{\frac {1}{3}}\right )}{3 b \left (\frac {a}{b}\right )^{\frac {2}{3}}}-\frac {\ln \left (\sin ^{2}\left (d x +c \right )-\left (\frac {a}{b}\right )^{\frac {1}{3}} \sin \left (d x +c \right )+\left (\frac {a}{b}\right )^{\frac {2}{3}}\right )}{6 b \left (\frac {a}{b}\right )^{\frac {2}{3}}}+\frac {\sqrt {3}\, \arctan \left (\frac {\sqrt {3}\, \left (\frac {2 \sin \left (d x +c \right )}{\left (\frac {a}{b}\right )^{\frac {1}{3}}}-1\right )}{3}\right )}{3 b \left (\frac {a}{b}\right )^{\frac {2}{3}}}-\frac {\ln \left (a +b \left (\sin ^{3}\left (d x +c \right )\right )\right )}{3 b}}{d}\) | \(133\) |
default | \(\frac {\frac {\ln \left (\sin \left (d x +c \right )+\left (\frac {a}{b}\right )^{\frac {1}{3}}\right )}{3 b \left (\frac {a}{b}\right )^{\frac {2}{3}}}-\frac {\ln \left (\sin ^{2}\left (d x +c \right )-\left (\frac {a}{b}\right )^{\frac {1}{3}} \sin \left (d x +c \right )+\left (\frac {a}{b}\right )^{\frac {2}{3}}\right )}{6 b \left (\frac {a}{b}\right )^{\frac {2}{3}}}+\frac {\sqrt {3}\, \arctan \left (\frac {\sqrt {3}\, \left (\frac {2 \sin \left (d x +c \right )}{\left (\frac {a}{b}\right )^{\frac {1}{3}}}-1\right )}{3}\right )}{3 b \left (\frac {a}{b}\right )^{\frac {2}{3}}}-\frac {\ln \left (a +b \left (\sin ^{3}\left (d x +c \right )\right )\right )}{3 b}}{d}\) | \(133\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.51, size = 159, normalized size = 0.95 \begin {gather*} \frac {\frac {2 \, \sqrt {3} {\left (b {\left (3 \, \left (\frac {a}{b}\right )^{\frac {1}{3}} - \frac {2 \, a}{b}\right )} + 2 \, a\right )} \arctan \left (-\frac {\sqrt {3} {\left (\left (\frac {a}{b}\right )^{\frac {1}{3}} - 2 \, \sin \left (d x + c\right )\right )}}{3 \, \left (\frac {a}{b}\right )^{\frac {1}{3}}}\right )}{a b} - \frac {3 \, {\left (2 \, \left (\frac {a}{b}\right )^{\frac {2}{3}} + 1\right )} \log \left (\sin \left (d x + c\right )^{2} - \left (\frac {a}{b}\right )^{\frac {1}{3}} \sin \left (d x + c\right ) + \left (\frac {a}{b}\right )^{\frac {2}{3}}\right )}{b \left (\frac {a}{b}\right )^{\frac {2}{3}}} - \frac {6 \, {\left (\left (\frac {a}{b}\right )^{\frac {2}{3}} - 1\right )} \log \left (\left (\frac {a}{b}\right )^{\frac {1}{3}} + \sin \left (d x + c\right )\right )}{b \left (\frac {a}{b}\right )^{\frac {2}{3}}}}{18 \, d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [C] Result contains complex when optimal does not.
time = 40.62, size = 2298, normalized size = 13.76 \begin {gather*} \text {Too large to display} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.50, size = 156, normalized size = 0.93 \begin {gather*} -\frac {\frac {2 \, \left (-\frac {a}{b}\right )^{\frac {1}{3}} \log \left ({\left | -\left (-\frac {a}{b}\right )^{\frac {1}{3}} + \sin \left (d x + c\right ) \right |}\right )}{a} + \frac {2 \, \log \left ({\left | b \sin \left (d x + c\right )^{3} + a \right |}\right )}{b} - \frac {2 \, \sqrt {3} \left (-a b^{2}\right )^{\frac {1}{3}} \arctan \left (\frac {\sqrt {3} {\left (\left (-\frac {a}{b}\right )^{\frac {1}{3}} + 2 \, \sin \left (d x + c\right )\right )}}{3 \, \left (-\frac {a}{b}\right )^{\frac {1}{3}}}\right )}{a b} - \frac {\left (-a b^{2}\right )^{\frac {1}{3}} \log \left (\sin \left (d x + c\right )^{2} + \left (-\frac {a}{b}\right )^{\frac {1}{3}} \sin \left (d x + c\right ) + \left (-\frac {a}{b}\right )^{\frac {2}{3}}\right )}{a b}}{6 \, d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 15.02, size = 153, normalized size = 0.92 \begin {gather*} \frac {\sum _{k=1}^3\ln \left (\left (\mathrm {root}\left (27\,a^2\,b^3\,d^3+27\,a^2\,b^2\,d^2+9\,a^2\,b\,d-b^2+a^2,d,k\right )\,b\,3+1\right )\,\left (a+b\,\sin \left (c+d\,x\right )+\mathrm {root}\left (27\,a^2\,b^3\,d^3+27\,a^2\,b^2\,d^2+9\,a^2\,b\,d-b^2+a^2,d,k\right )\,a\,b\,3\right )\right )\,\mathrm {root}\left (27\,a^2\,b^3\,d^3+27\,a^2\,b^2\,d^2+9\,a^2\,b\,d-b^2+a^2,d,k\right )}{d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________